package com.springboot.java.design.abstrictfactory;

import com.springboot.java.design.model.CPU;
import com.springboot.java.design.model.IntelCpu;
import com.springboot.java.design.model.IntelMotherboard;
import com.springboot.java.design.model.Motherboard;

/**
 * @Author: TongRui乀
 * @Date: 2019/3/5 14:24
 * @description：
 */
public class IntelComputerFactory implements ComputerFactory {
    @Override
    public Motherboard makeMotherBoard() {

        IntelMotherboard intelMotherboard = new IntelMotherboard();

        intelMotherboard.setName("Intel");

        return intelMotherboard;
    }

    @Override
    public CPU makeCpu() {

        IntelCpu intelCpu = new IntelCpu();

        intelCpu.setName("Intel");

        return intelCpu;
    }
}
